import request from '@/utils/request'

export function login(data) {
  // 设置登陆方法ll
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/api/v1/sys/role/queryUserPerimmionInfo',
    method: 'post'
  })
}

export function logout() {
  return request({
    url: '/sys/logout',
    method: 'post'
  })
}
